package me.lc.linklinkchrist.util;

import me.lc.linklinkchrist.R;
import me.lc.linklinkchrist.core.StageManager;

import com.wiyun.engine.sound.AudioManager;

public class AudioHelper {
	public static void playBackgoundMusic() {
		AudioManager.playBackgroundMusic(R.raw.background);
	}

	public static void stopBackgoundMusic() {
		AudioManager.stopBackgroundMusic();
	}

	public static void clickItem() {
		if (StageManager.instance.isAudioOn == 1) {
			AudioManager.playEffect(R.raw.click);
		}
	}

	public static void clearItem() {
		if (StageManager.instance.isAudioOn == 1) {
			AudioManager.playEffect(R.raw.clear);
		}
	}

	public static void buyTool() {
		if (StageManager.instance.isAudioOn == 1) {
			AudioManager.playEffect(R.raw.buy);
		}
	}

	public static void win() {
		if (StageManager.instance.isAudioOn == 1) {
			AudioManager.playEffect(R.raw.win);
		}
	}

	public static void lose() {
		if (StageManager.instance.isAudioOn == 1) {
			AudioManager.playEffect(R.raw.lose);
		}
	}

	public static void readyGo() {
		if (StageManager.instance.isAudioOn == 1) {
			AudioManager.playEffect(R.raw.readygo);
		}
	}
}
